<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html >
<%@ include file = "lianjie.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		Object ID = session.getAttribute("ID");
		request.setCharacterEncoding("utf-8");
 		String username_m = request.getParameter("username");
		String password = request.getParameter("password");
		String sex = request.getParameter("sex");
		String tel = request.getParameter("tel");
		String sql = "update usermassage set username = '" + username_m + "' , password = '" + password
				+ "' , sex = '" + sex + "' , tel = '" + tel + "' where ID = '" + ID + "'";
		
		try {
			stmt.executeUpdate(sql);
		} catch (SQLException e) {
			out.println("错误提示：" + e.getMessage());
		} finally {
			stmt.close();
			conn.close();
		}
		out.println("修改成功");
		response.setHeader("Refresh", "2;URL=modify_student.jsp");
	%>
</body>
</html>